package com.icehand.learn.mybatis.model.user;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_config")
@Accessors(chain = true)
public class Config extends Model<Config> {
	@TableId("name")
	private String name;

	private String desc;

	private Integer auth;

	private String value;

	@Override
	protected Serializable pkVal() {
		return this.name;
	}
}
